import java.util.ArrayList;

/**
 * Created by WEN on 2016/9/30.
 */
public class FindTheDifference {
    public char findTheDifference(String s, String t) {
        ArrayList<Character> tlist = new ArrayList<Character>();
        int index;
        for(int i=0;i<t.length();i++){
            tlist.add(t.charAt(i));
        }
        for(int i=0;i<s.length();i++){
            index=tlist.indexOf(s.charAt(i));
            tlist.remove(index);
        }
        return tlist.get(0);
    }

}
